package com.design.factory.simplefactory.factory;

import com.design.factory.simplefactory.ICourse;

/**
 * @auther LiZiBa
 * @date 2020/8/6 20:40
 * @description: 简单工厂模式
 **/
public class CourseFactory {

    public static ICourse createCourse(Class<? extends ICourse> clazz) throws IllegalAccessException, InstantiationException {

        return clazz.newInstance();
    }

}
